package com.xfly.app.wxapi;

import com.tencent.tauth.IUiListener;
import com.tencent.tauth.UiError;

/**
 * Created by Administrator on 2017/4/20.
 * 分享监听
 */

public abstract class ShareListener implements IUiListener {

    @Override
    public void onComplete(Object o) {
        shareSuccess();
    }

    @Override
    public void onError(UiError uiError) {
        shareFailure(uiError);
    }

    @Override
    public void onCancel() {
        shareCancel();
    }
    public abstract void shareSuccess();

    public abstract void shareFailure(UiError uiError);

    public abstract void shareCancel();
}
